body {
  margin: 0;
  background: #1d2636;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.button{
  width: 100px;
  height: 40px;
  background: #273348;
  text-align: center;
  font-size: 26px;
  font-family: FZLTXHK, FZLTXHK--GBK1-0;
  color: #899;
  line-height: 40px;
  position: absolute;
  top: 30%;
  right: 0;
}

.box {
  width: 750px;
  height: 1294px;
  transform: scale(0.5);
  transform-style: preserve-3d;

  &.active{
    .boxBg{
      filter: blur(5px);
      opacity: 0.6;
    }

    .header{
      left: -600px;
      top: 100px;
      transform: translateZ(100px);
    }

    .banner{
      background: #000;
      left: 700px;
      transform: translateZ(200px);
    }

    .userBox{
      box-shadow: 0 0 5px 0 rgba(0,0,0,0.4);
      left: -600px;
      top: 626px;
      transform: translateZ(160px);
    }

    .safeBox{
      box-shadow: 0 0 5px 0 rgba(0,0,0,0.4);
      left: 600px;
      bottom: 300px;
      transform: translateZ(260px);
    }
  }
}

.boxBg {
  width: 750px;
  height: 1294px;
  background: url('../img/bg.png') no-repeat 0 0/cover;
  position: absolute;
  transition: 10s;
}

.header {
  width: 750px;
  height: 88px;
  background: url('../img/head_bg.png') no-repeat 0 0/100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 1s 0.2s;
  transform-style: preserve-3d;

  &.active{
    .back{
      background:#000 url("../img/back.png") no-repeat center center/38px 40px;
      transform: translateZ(200px);

      &.active{
        background:#f0a238 url("../img/back.png") no-repeat center center/38px 40px;
        transform: translateZ(200px);
      }
    }

    .logo{
      background:#000 url("../img/logo.png") no-repeat;
      background-size: 100%;
      transform: translateZ(200px);

      &.active{
        background:#f0a238 url("../img/logo.png") no-repeat;
        background-size: 100%;
        transform: translateZ(200px);
      }
    }

    .signOut{
      background:#000 url("../img/signout.png") no-repeat;
      background-position: calc(100% - 20px) center;
      background-size: 41px 40px;
      transform: translateZ(200px);

      &.active{
        background:#f0a238 url("../img/signout.png") no-repeat;
        background-position: calc(100% - 20px) center;
        background-size: 41px 40px;
        transform: translateZ(200px);
      }
    }

    .code{
      opacity: 1;
    }
  }

  .back {
    width: 88px;
    height: 88px;
    background: url("../img/back.png") no-repeat center center/38px 40px;
    cursor: pointer;
    position: absolute;
    left: 0;
    transition: 0.5s;
  }

  .logo {
    width: 211px;
    height: 50px;
    background: url("../img/logo.png") no-repeat;
    background-size: 100%;
    position: absolute;
    top: 19px;
    left: 50%;
    margin-left: -105px;
    transition: 0.5s 0.1s;
  }

  .signOut {
    width: 106px;
    height: 88px;
    padding: 0 20px;
    background: url("../img/signout.png") no-repeat;
    background-position: calc(100% - 20px) center;
    background-size: 41px 40px;
    position: absolute;
    right: 0;
    font-size: 26px;
    font-family: FZLTXHK, FZLTXHK--GBK1-0;
    text-align: left;
    color: #ffffff;
    line-height: 88px;
    transition: 0.5s 0.2s;
  }

  .code{
    width: 500px;
    height: 220px;
    background: #252b32;
    border-radius: 10px;
    padding: 20px;
    position: absolute;
    top: 88px;
    left: 50%;
    margin-left: -250px;
    font: 30px/40px '';
    color: #fff;
    opacity: 0;
    transition: opacity 1s;

    li.active{
      background: #f0cdb9;
    }
  }
}

.banner {
  width: 750px;
  height: 438px;
  background: url("../img/banner_bg.png") no-repeat 0 0/cover;
  position: absolute;
  top: 88px;
  left: 0;
  transition: 1s 0.5s;

  &.active{
    .head{

    }
  }

  .head {
    width: 180px;
    height: 180px;
    border: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 66px;
    left: 50%;
    margin-left: -90px;
    overflow: hidden;

    img {
      width: 100%;
    }
  }

  .name {
    width: 100%;
    height: 36px;
    position: absolute;
    top: 296px;
    text-align: center;
    font-size: 36px;
    font-family: FZLTXHK, FZLTXHK--GBK1-0;
    color: #ffffff;
    line-height: 24px;

    span {
      display: inline-block;
      vertical-align: middle;
    }

    img {
      height: 100%;
      vertical-align: middle;
    }
  }

  .time {
    width: 100%;
    height: 24px;
    position: absolute;
    top: 353px;
    text-align: center;
    font-size: 22px;
    font-family: FZLTXHK, FZLTXHK--GBK1-0;
    color: #ffffff;
    line-height: 24px;
    opacity: 0.6;
  }
}

.userBox {
  width: 750px;
  height: 478px;
  background: #e5ebf0;
  position: absolute;
  top: 526px;
  left: 0;
  transition: 1s 1s;
  transform-style: preserve-3d;

  &.active{
    z-index: 3;
    .menu{
      .item{
        transform: translateZ(260px);
      }
    }
  }

  .menu {
    width: 100%;
    height: 378px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-evenly;
    position: absolute;
    top: 100px;
    transform-style: preserve-3d;

    .item {
      width: 186px;
      height: 186px;
      background: #ffffff;
      text-align: center;
      transform: translateZ(0px);

      &:nth-child(1){
        transition: 0.5s;
      }
      &:nth-child(2){
        transition: 0.5s 0.1s;
      }
      &:nth-child(3){
        transition: 0.5s 0.2s;
      }
      &:nth-child(4){
        transition: 0.5s 0.3s;
      }
      &:nth-child(5){
        transition: 0.5s 0.4s;
      }
      &:nth-child(6){
        transition: 0.5s 0.5s;
      }
      &:nth-child(7){
        transition: 0.5s 0.6s;
      }
      &:nth-child(8){
        transition: 0.5s 0.7s;
      }

      &:hover{
        background: #fbfcff;

        .icon{
          background-color: #f0a238;
        }

        .text{
          background: #0a6999;
        }
      }
    }

    .icon {
      width: 50px;
      height: 50px;
      margin-top: 45px;
      display: inline-block;

      &.info {
        background: url("../img/info.png") no-repeat 0 0/contain;

      }

      &.user {
        background: url("../img/user.png") no-repeat 0 0/contain;
        transition: 0.5s 0.1s;
      }

      &.vip {
        background: url("../img/vip.png") no-repeat left center/contain;
        transition: 0.5s 0.2s;
      }

      &.car {
        background: url("../img/car.png") no-repeat 0 0/contain;
        transition: 0.5s 0.3s;
      }

      &.record {
        background: url("../img/record.png") no-repeat 0 0/contain;
        transition: 0.5s 0.4s;
      }

      &.device {
        background: url("../img/device.png") no-repeat 0 0/contain;
        transition: 0.5s 0.5s;
      }

      &.count {
        background: url("../img/count.png") no-repeat 0 0/contain;
        transition: 0.5s 0.6s;
      }

      &.more {
        width: 49px;
        height: 9px;
        margin-top: 90px;
        background: url("../img/more.png") no-repeat left center/contain;
        transition: 0.5s 0.7s;
      }
    }

    .text {
      font-size: 26px;
      font-family: FZLTXHK, FZLTXHK--GBK1-0;
      color: #738797;
      line-height: 40px;
      display: inline-block;
      width: 100%;
    }
  }
}

.safeBox {
  width: 750px;
  height: 290px;
  background: #e5ebf0;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: 1s 1.5s;

  .menu {
    width: 100%;
    height: 190px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: space-evenly;
    position: absolute;
    top: 100px;

    .item {
      width: 374px;
      height: 186px;
      background: #ffffff;
      text-align: center;

      .icon {
        width: 50px;
        height: 50px;
        margin-top: 45px;
        display: inline-block;

        &.password {
          background: url("../img/password.png") no-repeat 0 0/contain;
        }

        &.email {
          background: url("../img/email.png") no-repeat 0 0/contain;
        }
      }
    }

    .text {
      font-size: 26px;
      font-family: FZLTXHK, FZLTXHK--GBK1-0;
      color: #738797;
      line-height: 40px;
      display: inline-block;
      width: 100%;
    }
  }
}

.title {
  width: 100%;
  height: 100px;
  background: #fbfcff;
  font-size: 32px;
  font-family: FZLTXHK, FZLTXHK--GBK1-0;
  color: #9ca9b4;
  line-height: 100px;
  box-sizing: border-box;
  padding-left: 49px;
  position: absolute;
  left: 0;
  top: 0;
}